import request from "@/utils/request";
//列表
const index = params => {
  return request({
    url: "/admin/system.Admin/index",
    method: "post",
    data: params
  });
};
//添加
const add = params => {
  return request({
    url: "/admin/system.Admin/add",
    method: "post",
    data: params
  });
};

//详情
const detail = params => {
  return request({
    url: "/admin/system.Admin/detail",
    method: "post",
    data: params
  });
};

//编辑
const edit = params => {
  return request({
    url: "/admin/system.Admin/edit",
    method: "post",
    data: params
  });
};

//重置密码-默认密码
const DefaultPassword = params => {
  return request({
    url: "/admin/system.Admin/DefaultPassword",
    method: "post",
    data: params
  });
};

//重置密码
const reset_password = params => {
  return request({
    url: "/admin/system.Admin/reset_password",
    method: "post",
    data: params
  });
};

//修改密码
const password = params => {
  return request({
    url: "/admin/system.Admin/password",
    method: "post",
    data: params
  });
};

//删除
const _delete = params => {
  return request({
    url: "/admin/system.Admin/delete",
    method: "post",
    data: params
  });
};

export default {
  index,
  add,
  detail,
  edit,
  DefaultPassword,
  reset_password,
  password,
  _delete
};
